package com.qianfeng.smartplatform.pojo;/*
 *@Description:
 *@author:赵健
 *@Date:zjzzz 2022/9/9 8:27
 */

import com.qianfeng.smartplatform.constans.ResultCode;
import com.qianfeng.smartplatform.valigroup.Insert;
import com.qianfeng.smartplatform.valigroup.Update;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Date;

public class Scene implements Serializable {
    @NotEmpty(message = "{\"code\": "+ ResultCode.PARAM_CONTENT_EMPTY +",\"msg\": \"必须传递id\"}", groups = {Update.class})
    private Long sceneId;

    @NotEmpty(message = "{\"code\": "+ ResultCode.PARAM_CONTENT_EMPTY +",\"msg\": \"必须传递场景名称\"}", groups = {Insert.class, Update.class})
    private String sceneName;

    private Long createBy;

    private Date createTime;

    private Short status;

    private static final long serialVersionUID = 1L;



    public Long getSceneId() {
        return sceneId;
    }

    public void setSceneId(Long sceneId) {
        this.sceneId = sceneId;
    }

    public String getSceneName() {
        return sceneName;
    }

    public void setSceneName(String sceneName) {
        this.sceneName = sceneName == null ? null : sceneName.trim();
    }

    public Long getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Long createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }
}
